
package com.market.dao;

import java.sql.Connection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

public interface IBaseDAO extends GenericDao
{

    public abstract void saveOrUpdate(Object obj);

    public abstract void delete(Object obj);

    public abstract List findByDetchedCriteria(DetachedCriteria detachCri, int start, int max);

    public abstract int getCountByDetachedCriteria(DetachedCriteria detachCri);

    public abstract void deleteByDetachedCriteria(DetachedCriteria detachCri);
    
    public abstract Connection getConnection();
}
